package co.yixiang.yshop.module.product.controller.admin.storeproductstocklog.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 商品库存记录 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class StoreProductStockLogBaseVO {

    @Schema(description = "商品", required = true, example = "1530")
    @NotNull(message = "商品不能为空")
    private Long goodsId;

    @Schema(description = "规格", required = true, example = "6860")
    @NotNull(message = "规格不能为空") //goods_sku_unique
    private String goodsSkuUnique;

    @Schema(description = "规格名")
    private String goodsSkuText;

    @Schema(description = "补货前", required = true)
    @NotNull(message = "补货前不能为空")
    private Integer beforeStock;

    @Schema(description = "补货库存", required = true)
    @NotNull(message = "补货库存不能为空")
    private Integer stock;

    @Schema(description = "补货备注", example = "你说的对")
    private String remark;

}
